<div class="properties form">
<?php echo $this->Form->create('Property');?>
	<fieldset>
 		<legend><?php __('Add Property'); ?></legend>
	<?php
		echo $this->Form->input('building_id');
		
		$options = array('url' => 'update_select','update' => 'PropertyPropertyTypeId');		
		echo $ajax->observeField('PropertyBuildingId', $options);				
				
		echo $this->Form->input('property_type_id',array('empty'=> 'Select'));
		echo $this->Form->input('floor');
		echo $this->Form->input('flat');
		echo $this->Form->input('dividend');
		echo $this->Form->input('owner_id',array('options' => $owners));
		echo $this->Form->input('owner_representative_id',array('empty' => 'Select','options'=> $ownerRepresentatives));
		echo $this->Form->input('tenant_id',array('empty' => 'Select','options' => $tenants));
		echo $this->Form->input('tenant_representative_id',array('empty' => 'Select','options' => $tenantRepresentatives));
		echo $this->Form->hidden('created_by');
		echo $this->Form->hidden('updated_by');
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('List Properties', true), array('action' => 'index'));?></li>
		<li><?php echo $this->Html->link(__('List People', true), array('controller' => 'people', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('List Buildings', true), array('controller' => 'buildings', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('List Property Types', true), array('controller' => 'property_types', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('List Accounts', true), array('controller' => 'accounts', 'action' => 'index')); ?> </li>
	</ul>
</div>
